<?php
return [
    'language'=>'zh-CN',//配置语言
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
        '@admin/admin'=>'@vendor/mdmsoft.yii2-admin',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        "authManager" => [
            "class" => 'yii\rbac\DbManager',
            'defaultRoles'=>['guest'],
        ],
        //语言包配置
        'i18n'=>[
            'translations'=>[
                '*'=>[
                    'class'=>'yii\i18n\PhpMessageSource',
                    'fileMap'=>[
                        'common'=>'common.php',
                    ],
                ],
            ],
        ],
//        'as access' => [//访问设置
//            'class' => 'mdm\admin\components\AccessControl',
//            'allowActions' => [//不受权限访问限制的控制器/方法
//                //这里是允许访问的action，不受权限控制
//                //controller/action
//            ]
//        ],
    ],
];
